<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
      xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:f="http://xmlns.jcp.org/jsf/core">

    <ui:composition template="/template.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.EditExpedienteTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">
            <h:panelGroup id="messagePanel" layout="block">
                <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
            </h:panelGroup>
            <h:form>
                <h:panelGrid columns="2">
                    <h:outputLabel value="#{bundle.EditExpedienteLabel_codExp}" for="codExp" />
                    <h:inputText id="codExp" value="#{expedienteController.selected.codExp}" title="#{bundle.EditExpedienteTitle_codExp}" required="true" requiredMessage="#{bundle.EditExpedienteRequiredMessage_codExp}"/>
                    <h:outputLabel value="#{bundle.EditExpedienteLabel_fechaReg}" for="fechaReg" />
                    <h:inputText id="fechaReg" value="#{expedienteController.selected.fechaReg}" title="#{bundle.EditExpedienteTitle_fechaReg}" >
                        <f:convertDateTime pattern="MM/dd/yyyy HH:mm:ss" />
                    </h:inputText>
                    <h:outputLabel value="#{bundle.EditExpedienteLabel_numexpeIngr}" for="numexpeIngr" />
                    <h:inputText id="numexpeIngr" value="#{expedienteController.selected.numexpeIngr}" title="#{bundle.EditExpedienteTitle_numexpeIngr}" required="true" requiredMessage="#{bundle.EditExpedienteRequiredMessage_numexpeIngr}"/>
                    <h:outputLabel value="#{bundle.EditExpedienteLabel_asunto}" for="asunto" />
                    <h:inputText id="asunto" value="#{expedienteController.selected.asunto}" title="#{bundle.EditExpedienteTitle_asunto}" required="true" requiredMessage="#{bundle.EditExpedienteRequiredMessage_asunto}"/>
                    <h:outputLabel value="#{bundle.EditExpedienteLabel_folios}" for="folios" />
                    <h:inputText id="folios" value="#{expedienteController.selected.folios}" title="#{bundle.EditExpedienteTitle_folios}" required="true" requiredMessage="#{bundle.EditExpedienteRequiredMessage_folios}"/>
                    <h:outputLabel value="#{bundle.EditExpedienteLabel_remitente}" for="remitente" />
                    <h:inputText id="remitente" value="#{expedienteController.selected.remitente}" title="#{bundle.EditExpedienteTitle_remitente}" />
                    <h:outputLabel value="#{bundle.EditExpedienteLabel_detalleExpe}" for="detalleExpe" />
                    <h:inputText id="detalleExpe" value="#{expedienteController.selected.detalleExpe}" title="#{bundle.EditExpedienteTitle_detalleExpe}" />
                    <h:outputLabel value="#{bundle.EditExpedienteLabel_fkCodificador}" for="fkCodificador" />
                    <h:inputText id="fkCodificador" value="#{expedienteController.selected.fkCodificador}" title="#{bundle.EditExpedienteTitle_fkCodificador}" />
                    <h:outputLabel value="#{bundle.EditExpedienteLabel_observac}" for="observac" />
                    <h:inputText id="observac" value="#{expedienteController.selected.observac}" title="#{bundle.EditExpedienteTitle_observac}" />
                    <h:outputLabel value="#{bundle.EditExpedienteLabel_proveido}" for="proveido" />
                    <h:inputText id="proveido" value="#{expedienteController.selected.proveido}" title="#{bundle.EditExpedienteTitle_proveido}" />
                    <h:outputLabel value="#{bundle.EditExpedienteLabel_interesArea}" for="interesArea" />
                    <h:selectOneMenu id="interesArea" value="#{expedienteController.selected.interesArea}" title="#{bundle.EditExpedienteTitle_interesArea}" required="true" requiredMessage="#{bundle.EditExpedienteRequiredMessage_interesArea}">
                        <f:selectItems value="#{interesAreaController.itemsAvailableSelectOne}"/>
                    </h:selectOneMenu>
                    <h:outputLabel value="#{bundle.EditExpedienteLabel_tipoTramite}" for="tipoTramite" />
                    <h:selectOneMenu id="tipoTramite" value="#{expedienteController.selected.tipoTramite}" title="#{bundle.EditExpedienteTitle_tipoTramite}" required="true" requiredMessage="#{bundle.EditExpedienteRequiredMessage_tipoTramite}">
                        <f:selectItems value="#{tipoTramiteController.itemsAvailableSelectOne}"/>
                    </h:selectOneMenu>
                    <h:outputLabel value="#{bundle.EditExpedienteLabel_tipoDocTra}" for="tipoDocTra" />
                    <h:selectOneMenu id="tipoDocTra" value="#{expedienteController.selected.tipoDocTra}" title="#{bundle.EditExpedienteTitle_tipoDocTra}" required="true" requiredMessage="#{bundle.EditExpedienteRequiredMessage_tipoDocTra}">
                        <f:selectItems value="#{tipoDocTraController.itemsAvailableSelectOne}"/>
                    </h:selectOneMenu>
                    <h:outputLabel value="#{bundle.EditExpedienteLabel_trabajador}" for="trabajador" />
                    <h:selectOneMenu id="trabajador" value="#{expedienteController.selected.trabajador}" title="#{bundle.EditExpedienteTitle_trabajador}" required="true" requiredMessage="#{bundle.EditExpedienteRequiredMessage_trabajador}">
                        <f:selectItems value="#{trabajadorController.itemsAvailableSelectOne}"/>
                    </h:selectOneMenu>
                    <h:outputLabel value="#{bundle.EditExpedienteLabel_tipoPriorida}" for="tipoPriorida" />
                    <h:selectOneMenu id="tipoPriorida" value="#{expedienteController.selected.tipoPriorida}" title="#{bundle.EditExpedienteTitle_tipoPriorida}" required="true" requiredMessage="#{bundle.EditExpedienteRequiredMessage_tipoPriorida}">
                        <f:selectItems value="#{tipoPrioridaController.itemsAvailableSelectOne}"/>
                    </h:selectOneMenu>
                    <h:outputLabel value="#{bundle.EditExpedienteLabel_inmuebles}" for="inmuebles" />
                    <h:selectOneMenu id="inmuebles" value="#{expedienteController.selected.inmuebles}" title="#{bundle.EditExpedienteTitle_inmuebles}" >
                        <f:selectItems value="#{inmueblesController.itemsAvailableSelectOne}"/>
                    </h:selectOneMenu>
                    <h:outputLabel value="#{bundle.EditExpedienteLabel_estado}" for="estado" />
                    <h:selectOneMenu id="estado" value="#{expedienteController.selected.estado}" title="#{bundle.EditExpedienteTitle_estado}" required="true" requiredMessage="#{bundle.EditExpedienteRequiredMessage_estado}">
                        <f:selectItems value="#{estadoController.itemsAvailableSelectOne}"/>
                    </h:selectOneMenu>
                </h:panelGrid>
                <h:commandLink action="#{expedienteController.update}" value="#{bundle.EditExpedienteSaveLink}"/>
                <br />
                <br />
                <h:link outcome="View" value="#{bundle.EditExpedienteViewLink}"/>
                <br />
                <h:commandLink action="#{expedienteController.prepareList}" value="#{bundle.EditExpedienteShowAllLink}" immediate="true"/>
                <br />
                <br />
                <h:link outcome="/index" value="#{bundle.EditExpedienteIndexLink}" />
            </h:form>
        </ui:define>
    </ui:composition>

</html>
